//
//  ArtClass.m
//  SmartRoadShow
//
//  Created by  ibokan on 10-9-25.
//  Copyright 2010 simonwang142232@gmail.com. All rights reserved.
//

#import "ArtClass.h"
#import "database.h"


@implementation ArtClass
@synthesize _id,_title,_news_id,_description,_content,_pubdate,_thumb;


//
//+(int)insertWithArtClassID:(int)artClassId NewsID:(int)newsId Title:(NSString *)title Description:(NSString *)description Content:(NSString *)content Pubdate:(NSString *)pubdate
//{
//	PLSqliteDatabase *db = [database setup];
//	BOOL re = [db executeUpdate:@"insert into ArtClass(ArtClass_id,title,news_id,description,content,pubdate) values(?,?,?,?,?,?)",
//			   [NSNumber numberWithInt:artClassId],
//			   title,
//			   [NSNumber numberWithInt:newsId],
//			   description,
//			   content,
//			   pubdate];
//	return re;
//}
//
//+(int)delete:(int)Id
//{
//	PLSqliteDatabase *db = [database setup];
//	BOOL re = [db executeUpdate:@"delete from ArtClass where ID = ?",[NSNumber numberWithInt:Id]];
//	return re;
//}
//
//-(id) initWithID:(int)Id ArtClassID:(int)artClassId NewsID:(int)newsId Title:(NSString *)title Description:(NSString *)description Content:(NSString *)content Pubdate:(NSString *)pubdate
//{
//	if(self = [super init])
//	{
//		_id =Id;
//		ArtClass_id = artClassId;
//		news_id = newsId;
//		_title = [title retain];
//		_description = [description retain];
//		_content = [content retain];
//		_pubdate = [pubdate retain];
//	}
//	return self;
//}

@end
